/*
 * @Author: Starfish_DL
 * @Date: 2020-09-30 20:34:27
 * @LastEditors: Starfish_DL
 * @LastEditTime: 2020-09-30 20:35:13
 * @CurrentVersion: 1.0
 * @Description: 
 */

public class Person002 {
    //属性
    private int age;

    //方法
    public void setAge(int i) {
        age = i; 
    }
    public int getAge() {
        return age;
    }

    //执行代码
    public static void main(String args[]){
        Person002 p2 = new Person002();
        p2.setAge(10);
        System.out.println(p2.getAge());
    }
}
